package edu.cn.nlsde.tmfst.processor;

import edu.cn.nlsde.Utils.IOUtil;
import edu.cn.nlsde.Utils.Utils;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;

/**
 * Created by dell-pc on 2016/3/12.
 */
public class Lemmatizer {

//    public String process(String sentence) {
//        Sentence sent = new Sentence(sentence);
//        System.out.println(sent.posTags());  //词性标注
//        System.out.println(sent.lemmas());  //词性还原标注
//        return null;
//    }
//
//    public static void main(String[] args) throws IOException {
//        String root = "G:\\我的本地文件\\资料\\数据\\短文本\\news\\";
//        BufferedReader reader = IOUtil.getReader(root + "en09062011.news.data");
//        BufferedWriter writer = IOUtil.getWriter(root + "postag.data");
//        String line;
//        while ((line = reader.readLine()) != null) {
//            if (line.length() > 0) {
//                Sentence sent = new Sentence(line);
//                writer.write(Utils.join(sent.posTags(), " "));
//            }
//            writer.write("\n");
//        }
//        writer.close();
//        reader.close();
//
//    }
}
